import request from '@/utils/request'

// 查询标注员工作量统计列表
export function listWorkload(query) {
  return request({
    url: '/mark/workload/list',
    method: 'get',
    params: query,
  })
}

// 查询标注员工作量统计详细
export function getWorkload(markerWorkloadId) {
  return request({
    url: '/mark/workload/' + markerWorkloadId,
    method: 'get',
  })
}

// 新增标注员工作量统计
export function addWorkload(data) {
  return request({
    url: '/mark/workload',
    method: 'post',
    data: data,
  })
}

// 修改标注员工作量统计
export function updateWorkload(data) {
  return request({
    url: '/mark/workload',
    method: 'put',
    data: data,
  })
}

// 删除标注员工作量统计
export function delWorkload(markerWorkloadId) {
  return request({
    url: '/mark/workload/' + markerWorkloadId,
    method: 'delete',
  })
}

// 导出标注员工作量统计
export function exportWorkload(query) {
  return request({
    url: '/mark/workload/export',
    method: 'get',
    params: query,
  })
}
